package com.health.db.service.sm.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.health.db.dao.sm.IDepartmentListDao;
import com.health.db.model.DepartmentList;
import com.health.db.model.DepartmentListExample;
import com.health.db.service.sm.IDepartmentListService;

@Component("departmentListService")
public class DepartmentListServiceImpl implements IDepartmentListService {
	
	@Autowired
	private IDepartmentListDao departmentListDao;

	@Override
	public List<DepartmentList> selectByExample(DepartmentListExample example) {
		// TODO Auto-generated method stub
		return departmentListDao.selectByExample(example);
	}

	@Override
	public DepartmentList selectByPrimaryKey(Long recid) {
		// TODO Auto-generated method stub
		return departmentListDao.selectByPrimaryKey(recid);
	}

	@Override
	public List<DepartmentList> selectByAllRecord() {
		// TODO Auto-generated method stub
		return departmentListDao.selectByAllRecord();
	}

	public IDepartmentListDao getDepartmentListDao() {
		return departmentListDao;
	}

	public void setDepartmentListDao(IDepartmentListDao departmentListDao) {
		this.departmentListDao = departmentListDao;
	}
	
}
